package com.jzb.binmvvmsdk.ui;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;

import com.jzb.binmvvmlib.base.BaseViewModel;
import com.jzb.binmvvmlib.http.interceptor.JsonRequestBody;
import com.jzb.binmvvmlib.model.Resource;
import com.jzb.binmvvmsdk.http.work.ImpRespostory;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * author jzb
 * Date: 2021/4/9
 * Describe:
 */
public class MainAVM extends BaseViewModel<ImpRespostory> {


    public MainAVM(@NonNull Application application) {
        super(application);
    }

    public MutableLiveData<Resource<List<String>>> doCs(){
        Map map=new HashMap();
        return getRepository().topNew(JsonRequestBody.getRequestBody(map));
    }

}
